<template>
  <div class="global-footer">
    <div class="footer-content">
      <p class="copyright">
        <a
          href="https://www.codefather.cn"
          target="_blank"
          rel="noopener noreferrer"
          class="author-link"
        >
          编程导航原创项目 by 程序员鱼皮
        </a>
      </p>
    </div>
  </div>
</template>

<script setup lang="ts">
// 无需额外的响应式数据
</script>

<style scoped>
.global-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e8e8e8;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
}

.copyright {
  margin: 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.author-link {
  color: #333333;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.author-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s;
}

.author-link:hover::before {
  left: 100%;
}

.author-link:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-content {
    padding: 12px 16px;
  }
  
  .copyright {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 10px 12px;
  }
  
  .copyright {
    font-size: 12px;
  }
  
  .author-link {
    padding: 2px 4px;
  }
}
</style>